<!DOCTYPE html>
<html>
<head>
    <title>Fried CS数据表格</title>
    <link href="../static/css/tabler.min.css" rel="stylesheet" type="text/css">
    <link href="../static/css/tabler.rtl.min.css" rel="stylesheet" type="text/css">
    <link href="../static/css/tabler-flags.min.css" rel="stylesheet" type="text/css">
    <link href="../static/css/tabler-flags.rtl.min.css" rel="stylesheet" type="text/css">
    <link href="../static/css/tabler-payments.min.css" rel="stylesheet" type="text/css">
    <link href="../static/css/tabler-payments.min.css" rel="stylesheet" type="text/css">
    <link href="../static/css/tabler-social.min.css" rel="stylesheet" type="text/css">
    <link href="../static/css/tabler-social.rtl.min.css" rel="stylesheet" type="text/css">
    <link href="../static/css/tabler-vendors.min.css" rel="stylesheet" type="text/css">
    <link href="../static/css/tabler-vendors.rtl.min.css" rel="stylesheet" type="text/css">
    <style>
        .centered {
            display: flex;
            justify-content: center; /* 水平居中 */
            align-items: center; /* 垂直居中 */
            height: 100vh; /* 可根据需要设置高度 */
        }

        .dropdown {
            margin-top: 10px; /* 向下移动10像素 */
            margin-left: 10px; /* 向右移动10像素 */
        }
    </style>

</head>
<body class="antialiased">
    <div class="dropdown">
        <a href="#" class="btn dropdown-toggle" data-bs-toggle="dropdown">打开菜单栏</a>
        <div class="dropdown-menu">
            <a class="dropdown-item" href="/data/">商品详细</a>
            <a class="dropdown-item" href="/ksh/">可视化数据分析</a>
        </div>
    </div>
<script>
        document.addEventListener("DOMContentLoaded", function() {
            // 初始化下拉菜单
            var dropdownToggle = document.querySelector('.dropdown-toggle');
            var dropdownMenu = document.querySelector('.dropdown-menu');

            dropdownToggle.addEventListener('click', function() {
                dropdownMenu.classList.toggle('show');
            });
        });
    </script>


    <div class="container mt-5">
        <h1 class="text-center">输入商品来获取对应信息</h1>
        <form method="post" action="{% url 'gd' %}" class="text-center mt-3">
            {% csrf_token %}
            <label for="data" class="form-label">商品名</label>
            <input type="text" id="data" name="data" class="form-control" placeholder="输入商品名" autocomplete="off">
            <button type="submit" class="btn btn-primary mt-3">搜索</button>
        </form>
        <!--
        <div class="centered">
            <a href="/data/" class="btn btn-primary mt-3">点击跳转至商品详细页面</a>
        </div>
        -->
    </div>
</body>
</html>
